<?php
require_once 'cfg/cfg.php';
require_once 'cfg/autoload.php';
require_once 'cfg/router.php';
require_once 'cfg/db.php';

// request path
$path = $_REQUEST['_path'];
unset($_REQUEST['_path']);
unset($_GET['_path']);
unset($_POST['_path']);

if (!$path)
	$path = 'home';

echo Router::route($path);